body {
    margin: 0;
    padding: 0;
    font-family: 'Microsoft yahei', sans-serif;
    background-color: #ccc;
}

/****************头部*****************/
header {
    background-color: #333;
}

header img {
    height: 55px;
}

header ul {
    position: absolute;
    top: 0;
    right: 5px;
}

header li {
    float: left;   /*在li标签内使用float属性可以改变使其横向*/
    padding-right: 22px;
    font-size: 14px;
}

header a {
    text-decoration: none;  /*消除链接的下划线*/
    color: white;
}

/****************文章区*****************/
article {
    margin: 20px 430px 20px 20px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px #000;   /*侧边栏阴影*/
}

article h2 {
    font-size: 16px;
    font-weight: bold;
    color: #999;
}

.adress {
    font-size: 12px;
    font-weight: bold;
    color: #999;
}

.firstline {
    text-indent: 2em;   /*首行缩进两字符*/
}

#nostyle {
    list-style: none;   /*消除项目列表前的符号*/
}

figure {
    display: inline-block;
    margin: 3px;
    padding: 10px;
    width: 140px;
    height: 120px;
    border: 1px solid #ccc;
}

figcaption {
    padding-bottom: 5px;
    text-align: center;
}

dd span {
    display: block;   /*将内联元素改为块元素*/
    margin-bottom: 15px;
    text-align: center;
}

table {
    width: 100%;
    border: 1px solid #98bf21;
    border-collapse: collapse;  /*使用border-collapse合并表格边框*/
}

th {
    text-align: left;
    font-size: 1.1em;
    color: #fff;
    background-color: #a7c942;
}

.alt {
    color: black;
    background-color: #eaf2d3;
}

/****************侧边栏*****************/
aside {
    position: absolute;
    top: 80px;
    right: 20px;
    padding: 20px;
    width: 350px;
    font-size: 14px;
    background-color: #fff;
    box-shadow: 0 0 10px #000;   /*侧边栏阴影*/
}

aside h2 {
    padding-left: 10px;
    border-left: 3px solid #ccc;  /*设置左边框样式*/
    line-height: 40px;
    font-size: 16px;
}

aside form {
    margin: 20px 0;
}

aside p {
    margin-bottom: 20px;
    margin-left: 120px;
    font-size: 13px;
    color: #999;
}

.tips {
    padding-left: 2em;
}

aside div {
    margin: 15px 20px;
}

/*个人信息*/
.detail {
    padding-left: 5em;
}

/*添加左边距后，个人描述才能与文本框对齐*/
.self_detail {
    margin-left: 3em;
}

textarea {
    margin-top: -20px;
    margin-left: 120px;
    width: 60%;
    height: 100px;
}

.button {
    width: 100%;
    height: 40px;
    border-radius: 10px;
    background-color: #3355d0;
}

/*************************************************/
footer {
    padding-top: 35px;
    height: 60px;
    text-align: center;
    color: #fff;
    background-color: #000;
}